﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using MedicalCare.EntityDefinitions.Entities;

namespace MedicalCare.EntityMappings.EntityMaps
{
    public class EquipmentsMapping : ClassMap<EquipmentsEntity>
    {
        public EquipmentsMapping()
        {
            Table("Equipments");
            Id(x => x.Id).Column("Id").Not.Nullable();
            Map(x => x.EquipmentName).Column("Name");
            Map(x => x.EquipmentTypeId).Column("EquipmentTypeId");
            Map(x => x.SensorId).Column("SensorId");
            Map(x => x.Manufacturer).Column("Manufacturer");
            Map(x => x.Model).Column("Model");
            Map(x => x.ModifyUser).Column("ModifyUser");
            Map(x => x.CreateUser).Column("CreateUser");
            Map(x => x.Valid).Column("Valid");
        }
    }
}